import Vue from 'vue'

import VueRouter from 'vue-router'

import Login from '@/view/login'
import Register from '@/view/register'
import Article from '@/view/article'
import List from '@/view/list'

Vue.use(VueRouter)

const router = new VueRouter({
  routes: [
    {
      path: '/login',
      component: Login,
    },
    {
      path: '/register',
      component: Register,
    },
    {
      path: '/article',
      component: Article,
    },
    {
      path: '/list',
      component: List,
    },
  ],
})

export default router
